<!DOCTYPE html>
<html>

<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        .loader {
            border-radius: 50%;
            border-top: 26px solid blue;
            border-right: 26px solid green;
            border-bottom: 26px solid red;
            border-left: 26px solid pink;
            width: 120px;
            height: 120px;
            -webkit-animation: spin 2s linear infinite;
            animation: spin 1s linear infinite;
        }

        @-webkit-keyframes spin {
            0% {
                -webkit-transform: rotate(0deg);
            }
            100% {
                -webkit-transform: rotate(360deg);
            }
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
    </style>
</head>

<body>

    <h2>How To Create A Loader   可用于 加载中...    效果实现   </h2>

    <div class="loader"></div>

    <pre>
    <h2>

        必知必会 


        .loader {
            border-radius: 50%;
            border-top: 26px solid blue;
            border-right: 26px solid green;
            border-bottom: 26px solid red;
            border-left: 26px solid pink;
            width: 120px;
            height: 120px;
            -webkit-animation: spin 2s linear infinite;
            animation: spin 2s linear infinite;
        }
        
        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }
    </h2>
    </pre>

</body>

</html>